package com.example.demo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 心理测评问卷表
 * </p>
 *
 * @author hyb
 * @since 2024-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Questionaire implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 问卷id
     */
    private Integer questionaireId;

    /**
     * 问卷标题
     */
    private String title;

    /**
     * 问卷简介
     */
    private String introduction;

    /**
     * 0无效，1有效
     */
        private Integer isActive;

    /**
     * 记录最后更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 记录创建时间
     */
    private LocalDateTime createTime;
    public Questionaire(Integer questionaireId, String title, String introduction) {
        this.questionaireId = questionaireId;
        this.title = title;
        this.introduction = introduction;
        this.updateTime = LocalDateTime.now();
        this.createTime = LocalDateTime.now();
        this.isActive = 1;
    }


}
